
public class CheckingAccount extends BankAccount {
    private double commission;
    public CheckingAccount(double balance, double commission) {
        super(balance);
        this.commission = commission;
    }

    @Override
    public void deposit(double amount) {
        super.deposit(amount-1);
    }

    @Override
    public void withdraw(double amount) {
        super.withdraw(amount+1);
    }
}
